package sevensoft.行为型模式.访问者模式;

public class Dog implements Animal{
    @Override
    public <T extends Person> void eat(T person) {
        person.feed(this);
        System.out.println("dog eat...");
    }
}
